<ng-container *ngIf="!outlet.isActivated">
    <div class="px-5 py-2">
        <!-- <div style="position: relative;"> -->
        <!-- <h4 style="font-size: 1.1rem;font-weight:400;" class="mt-5 mb-5 text-center">**公司车销交款单</h4> -->
        <!-- <div style="width:100px;height:100px;background:#ccc; position:absolute;top: 0;right: 0;"></div> -->
        <!-- </div> -->
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">卖货码单号</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">生成数量</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">生成日期</span></div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">投放红包数量</span></div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>

        </div>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">投放红包总额</span></div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">红包投放率</span></div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col"></div>
            <div class="input-group mb-3 col"></div>
        </div>

    </div>
    <div class="px-5 py-2">
        <div class="form-group">
            <label class="col-form-label label-required text-right mr-3">单个红包金额</label>
            <ts-checkbox class="mr-5" *ngFor="let sel of payTerms;index as i" color="secondary" [value]="i+1"
                [(ngModel)]="sel.name">
                {{sel.beforeInputLabel}}
                <input *ngIf="sel.hasInput" [(ngModel)]="sel.inputValue" class="border-l-0 border-r-0 radius-0 border-t-0 form-control bg-light"
                    style="width:50px !important;" type="text"> {{sel.afterInputLable}}
            </ts-checkbox>
        </div>
        <div class="form-groups">

            <label class="col-form-label label-required text-right mr-3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
            <ts-checkbox class="mr-5" *ngFor="let sel of rebateTerm;index as i" color="secondary" [value]="i+1"
                [(ngModel)]="sel.name">
                {{sel.beforeInputLabel}}
                <input *ngIf="sel.hasInput" [(ngModel)]="sel.inputValue" class="border-l-0 border-r-0 radius-0 border-t-0 form-control bg-light"
                    style="width:50px !important;" type="text"> {{sel.afterInputLable}}
            </ts-checkbox>
            <div style="margin:0px 200px;position: relative;top: -33px; right: -28px;">
                <div class="row">
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">最低</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">元
                    </div>
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">占比</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
                    </div>
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">即</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">个
                    </div>
                </div>
                <div class="row">
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">中值</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">元
                    </div>
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">占比</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
                    </div>
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">即</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">个
                    </div>
                </div>
                <div class="row">
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">最高</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">元
                    </div>
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">占比</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
                    </div>
                    <div class="input-group mb-3 col">
                        <div class="input-group-prepend">
                            <span class="input-group-text bg border-0">即</span></div>
                        <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">个
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-form-label label-required text-right mr-3">卖货码验证次数</label>
            <ts-checkbox class="mr-5" *ngFor="let sel of freightTerm;index as i" color="secondary" [value]="i+1"
                [(ngModel)]="sel.name">
                {{sel.beforeInputLabel}}
                <input *ngIf="sel.hasInput" [(ngModel)]="sel.inputValue" class="border-l-0 border-r-0 radius-0 border-t-0 form-control bg-light"
                    style="width:50px !important;" type="text"> {{sel.afterInputLable}}
            </ts-checkbox>
        </div>
    </div>
    <div class="px-4 bg-light my-5">
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">账户余额</span>
                </div>
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">$80000</span>
                </div>
                <button tsBtn loading color="success">充值</button>
            </div>
        </div>
    </div>
    <div class="my-5 m-btn text-right pr-5">
        <button routerLink="/sales/sellingcode" tsBtn color="white">返回列表</button>
        <button *ngIf="goods.id===0" tsBtn loading color="success" (submit)="confirmInsert($event)">确定</button>
        <button routerLink="/purchase/contract" tsBtn color="danger">取消</button>
    </div>
</ng-container>

<router-outlet #outlet="outlet"></router-outlet>